/**
 * Created by ztt on 2017/11/17.
 */
var express=require('express');
var app=express();
app.get("/",function (req,res) {
    res.send('Hello GET');
});
app.post('/',function (req,res) {
    res.send("Helo Post");
});
app.get("/userId",function (req,res) {
    res.send("获取用户");
});
app.post("/userList",function (req,res) {
    res.send("用户信息列表");
});
app.get('/ab*cd', function(req, res) {
    res.send('正则匹配');
});
var server=app.listen(3000,function () {
    var host=server.address().address;
    var port=server.address().port;
    console.log(host,port);
})